package com.four.order.controller;

import com.four.common.utils.R;
import com.four.order.entity.OrRetrea;
import com.four.order.service.RetreatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lky
 * @version 1.0
 * @date 2022/1/13 9:30
 */
@RestController
@RequestMapping("retreats")
public class RetreatsController {
    @Autowired
    private RetreatsService retreatsService;

    /**
     * 查询退货申请类型
     * @return list
     */
    @GetMapping("findList")
    public R findList(){
        List<OrRetrea>findAll = retreatsService.findList();
        return R.ok().put("list",findAll);
    }


}
